<?php
/**
 * This file contains the class AlertsExampleView which provides
 * all of the text requirements for the alerts intro page
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 */
/**
 * This class provides the text for the alerts example
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 */
class AlertsExampleView
{
    /**
      * The html class that provides helpers to display the text
     *
     * @var Html
     */
    private $_html;
    /**
     * Builds the list of text messages
     * 
     * @return void
     * @param Html &$html
     */
    function __construct(&$html)
    {
        $this->_html = $html;
    }
    /**
     * The contents for the page
     *
     * @return string
     */
    function content()
    {
        return <<< EOT
    <h2>Example of Your Alerts</h2>
    <p>There is no limit to the number of <a href="/alerts.php">alerts</a> you request. It is $9.90 to set up the first search, and $5.00 for each alert after that.</p>
    <p>Each alert lasts 12 months from the date of purchase.</p>
    <p><img src="/images/assets/alertsExample.gif"></p>
EOT;
    }
    /**
     * Render the page
     *
     * @return string
     * @param string $content
     */
    function render()
    {
        $content = $this->content();
        return <<< EOT
<div id="centerbar">
$content
</div>

EOT;
    }
}
?>